﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sharp.Portal.Other;

namespace Sharp.Portal
{
    /// <summary>
    /// 工具栏的按钮
    /// </summary>
    public interface IToolButton
    {
        /// <summary>
        /// 列表页
        /// </summary>
        dynamic ListPage { get; set; }

        /// <summary>
        /// 详情按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        string DetailsButton(ToolButtonInfo config);
        /// <summary>
        /// 新增按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>

        string CreateButton(ToolButtonInfo config);
        /// <summary>
        /// 编辑按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        string EditButton(ToolButtonInfo config);
        /// <summary>
        /// 删除按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        string DeleteButton(ToolButtonInfo config);  
        /// <summary>
        /// 刷新按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        string RefreshButton(ToolButtonInfo config);
        /// <summary>
        /// 自定义按钮
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        string CustomButton(ToolButtonInfo config);
    }
}
